package com.puge.eduservice.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author by sun
 * @date 2021/6/1.23:18
 */
@Configuration//主配置类的注解,将当前额类设置为配置类
@MapperScan("com.puge.eduservice.mapper")
public class EduConfig {


//    分页查询插件
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new  PaginationInterceptor();
    }
}
